package com.xyoto.takeawayBusiness.enums;

/**
 * @Description
 * @Author: TingFeng
 * @CreateTime: 2022/5/4  15:32
 */
public enum ShopEnum implements Code{
    /**
     * 店铺中心枚举
     */
    USER_SHOP_NOT_EXIST(6200, "用户店铺不存在"),
    SHOP_LOGO_SAVE_FAIL(6201, "店铺logo存储失败"),
    SHOP_UPDATE_FAIL(6202, "店铺修改失败"),
    SHOP_DATA_NO_FIND(3400,"商铺信息未找到"),
    TAKEAWAY_MANAGER_NO_FIND(3401,"外卖管理信息未找到"),
    TAKEAWAY_MANAGER_UPDATE_ERROR(3410,"外卖管理修改失败"),
    TAKEAWAY_ADD_ERROR(3411,"添加外卖管理失败"),
    TAKEAWAY_MANAGER_HAVE_FIND(3412,"外卖管理已存在，请勿重复添加");

    private int code;
    private String msg;

    ShopEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }


}
